﻿Imports System.Windows.Forms.DataVisualization.Charting


Public Class GraphDetail

    Public Sub New(ByVal counterName As String, ByVal objectName As String, Optional ByVal instanceName As String = "")
        InitializeComponent()

        If Len(instanceName) = 0 Then
            Main.GraphOnly(counterName,
                             objectName,
                             Me.ChartDetail)
        Else
            Main.GraphOnly(counterName,
                           objectName,
                           Me.ChartDetail,
                           instanceName)
        End If

        With Me.ChartDetail
            .Series(0).ChartType = DataVisualization.Charting.SeriesChartType.Line
            .Series(0).Name = counterName
        End With
    End Sub

End Class